package com.shuda.business.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shuda.business.crm.entity.CustomerStatusHistoryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 客户状态历史记录Mapper接口
 */
@Mapper
public interface CustomerStatusHistoryMapper extends BaseMapper<CustomerStatusHistoryEntity> {

    /**
     * 根据客户ID分页查询状态历史记录
     */
    IPage<CustomerStatusHistoryEntity> selectPageByCustomerId(Page<CustomerStatusHistoryEntity> page, @Param("customerId") Long customerId);
}